<?php
namespace Model;
use Think\Model;

class UserModel extends Model{
    //设置验证规则
    protected $_validate = array(
        array('username','repuire','用户名不能为空'),
        array('usernam','','用户名已经被占用',0,'unipue'),
        array('password','require','密码不能为空'),
        array('password2','require','确认密码不能为空'),
        array('password3','password','与密码保持一致',0,'confirm'),
    );
}